﻿using Microsoft.Extensions.DependencyInjection;
using PineLake.Drmwe.Encrypts.DES;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PineLake.Drmwe.Core.Encrypts
{
    /// <summary>
    /// DES加密
    /// </summary>
    public static class DESStartup
    {
        /// <summary>
        /// AES加密注入
        /// </summary>
        /// <param name="Services"></param>
        /// <exception cref="ArgumentNullException"></exception>
        public static void AddDESStartup(this IServiceCollection Services)
        {
            if (Services == null) throw new ArgumentNullException(nameof(Services));
            Services.AddSingleton<IDES, DES>();
        }
    }
}
